<template>
  <div>
    <a-select allow-clear v-model="model" :options="modelOptions" @change="change"></a-select>
  </div>
</template>

<script setup lang="ts">
import { modelOptions, queryModelOptions } from "@/api/service/model/data";

const model = defineModel<string | number>();
const emit = defineEmits(["change"]);

const change = () => emit("change", model.value);
onMounted(() => {
  queryModelOptions();
});
</script>

<style lang="scss" scoped></style>
